﻿namespace GameFramework.net.msgserializer
{
    public interface MsgSerializer
    {
        //判断此脚本能否处理此序列化方式
        public bool canSerialize(MsgSerializeType serializeType);
        //将对象序列化成字节数组
        public byte[] Serialize(object msg);
        // 将字节数组反序列化成对象
        public object Deserialize(byte[] msg, System.Type type); 
    }
}